<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>第3章测试</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
      background-color: #f2f2f2;
    }
    .container {
      max-width: 900px;
      margin: auto;
      background-color: #fff;
      padding: 30px 50px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    h1, h2 {
      text-align: center;
      color: #333;
    }
    .section {
      margin-top: 40px;
    }
    .question {
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 1px solid #ddd;
    }
    .question-title {
      font-weight: bold;
      margin-bottom: 10px;
      font-size: 1.1em;
    }
    .options {
      margin-left: 20px;
    }
    .options label {
      display: block;
      margin-bottom: 8px;
      cursor: pointer;
    }
    .options input {
      margin-right: 10px;
    }
    .submit-btn {
      display: block;
      width: 180px;
      margin: 40px auto 0;
      padding: 12px;
      background-color: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
      font-size: 1em;
      border-radius: 5px;
      transition: background-color 0.3s;
    }
    .submit-btn:hover {
      background-color: #45a049;
    }
    .result {
      margin-top: 40px;
      padding: 20px;
      background-color: #e7f3fe;
      border-left: 6px solid #2196F3;
    }
    .loading, .error {
      text-align: center;
      font-size: 1.2em;
      color: #666;
    }
  </style>
</head>
<body>

<div class="container">
  <h1 id="quiz-title">加载中...</h1>
  <div id="quiz-content"></div>
  <button class="submit-btn" onclick="submitQuiz()" style="display: none;">提交答案</button>
  <div id="quiz-result" class="result" style="display: none;"></div>
</div>

<script>
  // JSON 数据
  const data = {
    "errcode": 0,
    "errmsg": "",
    "data": {
      "problems": [
        {
          "id": 512496,
          "Body": "",
          "order": 1,
          "title": "第一大题",
          "problems": [
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某汽车厂为一般纳税人，下设一非独立核算门市部，该厂 2023 年 6 月将一批汽车移送门市部销售，计价 176 万元。门市部零售取得销售收入 187.22 万元。则消费税的计税销售额是（&nbsp; &nbsp; ）万元。</p></div>",
              "Type": "SingleChoice",
              "data": {},
              "Score": 2,
              "index": 0,
              "score": 2,
              "isEdit": false,
              "Options": [
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>165.68</p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>170.2&nbsp;</p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>177.2</p></div>"
                },
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>166</p></div>"
                }
              ],
              "Version": "385a8fa27216448c8c7d06862bcc766b",
              "TypeText": "单选题",
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986215,
              "max_retry": 1,
              "TemplateID": 10705035,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986215,
              "ProblemType": 1,
              "template_id": 10705035,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>下列各项中，应征收消费税的是（&nbsp; &nbsp; &nbsp; &nbsp;）。</p><p><br/></p></div>",
              "Type": "SingleChoice",
              "data": {},
              "Score": 2,
              "index": 0,
              "score": 2,
              "isEdit": false,
              "Options": [
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>高尔夫车</p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>影视演员化妆用的上妆油</p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>沙滩车</p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>溶剂油原料</p></div>"
                }
              ],
              "Version": "a357801d7eec4822944f509bdf6dc38b",
              "TypeText": "单选题",
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986217,
              "max_retry": 1,
              "TemplateID": 10705151,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986217,
              "ProblemType": 1,
              "template_id": 10705151,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某企业为增值税一般纳税人。2021 年 3 月，该企业进口 180 辆小汽车，每辆小汽车关税完税价格为 25 万元。该企业进口该批小汽车应纳消费税税额（&nbsp; &nbsp; &nbsp;）万元。（已知小汽车关税税率为 40%，消费税税率为 5%）</p><p><br/></p></div>",
              "Type": "SingleChoice",
              "data": {},
              "Score": 2,
              "index": 0,
              "score": 2,
              "isEdit": false,
              "Options": [
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>236.84</p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>300</p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>331.58</p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>315</p></div>"
                }
              ],
              "Version": "cb45d9dafa1946c6831ef1dbcb6c28ec",
              "TypeText": "单选题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986216,
              "max_retry": 1,
              "TemplateID": 10705036,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986216,
              "ProblemType": 1,
              "template_id": 10705036,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>下列单位中属于消费税纳税人的有（&nbsp; &nbsp; ）。</p></div>",
              "Type": "MultipleChoice",
              "data": {},
              "Score": 4,
              "index": 0,
              "score": 4,
              "isEdit": false,
              "Options": [
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>受托加工卷烟的加工厂</p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>委托加工烟丝的卷烟厂</p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>小汽车生产企业</p></div>"
                },
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>进口葡萄酒的外贸公司</p></div>"
                }
              ],
              "Version": "4b1bb3cdd49e4b9ca81278fd07b33b73",
              "TypeText": "多选题",
              "HalfScore": 0,
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986199,
              "max_retry": 1,
              "TemplateID": 10705005,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986199,
              "ProblemType": 2,
              "template_id": 10705005,
              "awardingRule": 1,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>下列各项中，符合消费税纳税地点规定的有（&nbsp; &nbsp; &nbsp; ）</p><p><br/></p></div>",
              "Type": "MultipleChoice",
              "data": {},
              "Score": 4,
              "index": 0,
              "score": 4,
              "isEdit": false,
              "Options": [
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>纳税人委托加工应税消费品一般回委托方所在地交纳消费税</p><p><br/></p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>纳税人到外县市销售自产应税消费品的，应回纳税人核算地或所在地申报纳税</p><p><br/></p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>纳税人自产自用应税消费品在纳税人核算地缴纳消费税</p><p><br/></p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>纳税人进口应税消费品在纳税人机构所在地缴纳消费税</p><p><br/></p></div>"
                }
              ],
              "Version": "6642d1fa5d354ef5af23f736e12e082a",
              "TypeText": "多选题",
              "HalfScore": 0,
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986213,
              "max_retry": 1,
              "TemplateID": 10705031,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986213,
              "ProblemType": 2,
              "template_id": 10705031,
              "awardingRule": 1,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>甲企业从境外进口一批高档化妆品，下列关于该业务缴纳消费税表述中正确的有（&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;）。</p><p><br/></p></div>",
              "Type": "MultipleChoice",
              "data": {},
              "Score": 4,
              "index": 0,
              "score": 4,
              "isEdit": false,
              "Options": [
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>海关代征的消费税应分别入中央库和地方库</p><p><br/></p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>甲企业应向报关地海关申报缴纳消费税</p><p><br/></p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>甲企业应当自海关填发进口消费税专用缴款书之日起15日内缴纳税款</p><p><br/></p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>甲企业使用该进口已税高档化妆品生产高档化妆品准许扣除进口环节缴纳的消费税</p><p><br/></p></div>"
                }
              ],
              "Version": "e5b00be9bd8d4d47bb874bbb2dd57728",
              "TypeText": "多选题",
              "HalfScore": 0,
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986212,
              "max_retry": 1,
              "TemplateID": 10705030,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986212,
              "ProblemType": 2,
              "template_id": 10705030,
              "awardingRule": 1,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>下列各项中，应当征收消费税的有（　&nbsp; &nbsp; ）。</p><p><br/></p></div>",
              "Type": "MultipleChoice",
              "data": {},
              "Score": 4,
              "index": 0,
              "score": 4,
              "isEdit": false,
              "Options": [
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>化妆品厂作为样品赠送给客户的高档香水</p><p><br/></p></div>"
                },
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>建材生产企业移送非独立核算门市部待销售的涂料白酒生产企业向百货公司销售的试制药酒</p><p><br/></p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>白酒生产企业向百货公司销售的试制药酒</p><p><br/></p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>生产企业用于产品质量检验耗费的高尔夫球杆</p><p><br/></p></div>"
                }
              ],
              "Version": "ecfe1deb735a40b399bc06d199675fd8",
              "TypeText": "多选题",
              "HalfScore": 0,
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986206,
              "max_retry": 1,
              "TemplateID": 10705022,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986206,
              "ProblemType": 2,
              "template_id": 10705022,
              "awardingRule": 1,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>下列产品中，在计算缴纳消费税时准许扣除外购应税消费品已纳消费税的有（　）。</p><p><br/></p></div>",
              "Type": "MultipleChoice",
              "data": {},
              "Score": 4,
              "index": 0,
              "score": 4,
              "isEdit": false,
              "Options": [
                {
                  "key": "C",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>外购已税白酒加香生产的白酒</p><p><br/></p></div>"
                },
                {
                  "key": "D",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>外购已税手表镶嵌钻石生产的手表</p><p><br/></p></div>"
                },
                {
                  "key": "A",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>外购已税烟丝生产的卷烟</p><p><br/></p></div>"
                },
                {
                  "key": "B",
                  "value": "<div class=\"custom_ueditor_cn_body\"><p>外购已税实木素板涂漆生产的实木地板</p><p><br/></p></div>"
                }
              ],
              "Version": "1a15914f99694e64bd6b5e744d00396c",
              "TypeText": "多选题",
              "HalfScore": 0,
              "HasRemark": false,
              "LibraryID": 101089,
              "ProblemID": 52986203,
              "max_retry": 1,
              "TemplateID": 10705018,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986203,
              "ProblemType": 2,
              "template_id": 10705018,
              "awardingRule": 1,
              "review_detail": {},
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某外贸企业2019年6月购入并外销摩托车100辆，每辆售价3000美元，摩托车采购价每辆1.695万元，含增值税，摩托车消费税率为10％，应退 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万元消费税，计算结果不保留小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "5191d1418b144c4c94ab5687e3424eb5",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986211,
              "max_retry": 1,
              "TemplateID": 10705028,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986211,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705028,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某公司2020年8月进口一批摩托车，海关应征进口关税15万元,关税税率假定为30%，则进口环节还需缴纳多少增值税和消费税。（消费税税率为10%）计算结果保留两位小数。</p><p>关税的完税价格= <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万</p><p>进口环节消费税组价= <span class=\"blank-item\" style=\"display: inline-block;\">[填空2]</span> 万</p><p>进口环节应该缴纳的消费税= <span class=\"blank-item\" style=\"display: inline-block;\">[填空3]</span> 万</p><p>进口环节应该交纳的增值税= <span class=\"blank-item\" style=\"display: inline-block;\">[填空4]</span> 万</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 2,
                  "score": 2,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                },
                {
                  "Num": 2,
                  "Score": 2,
                  "score": 2,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                },
                {
                  "Num": 3,
                  "Score": 2,
                  "score": 2,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                },
                {
                  "Num": 4,
                  "Score": 2,
                  "score": 2,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "6feb9c4cd2c540a7b708e0d243446bf7",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986210,
              "max_retry": 1,
              "TemplateID": 10705027,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986210,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705027,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某酒厂2019年6月自制白酒5吨，销售4吨，收到不含税销售额20万元，其中含单独收取的包装物售价3万元，另收取单独核算的包装物押金0.2万元，白酒的定额税率为0.5元／斤，比例税率为20％，此项业务应交消费税为 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万元？计算结果保留两位小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "a1126d7daeb642b1b5202cbc65e03d7c",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986200,
              "max_retry": 1,
              "TemplateID": 10705008,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986200,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705008,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某企业委托酒厂加工药酒10箱，该药酒无同类产品销售价格，已知委托方提供的原料成本2万，受托方垫付辅助成本0.15万元，另收取不含增值税的加工费0.4万元，则酒厂代收的消费税应该是 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 元。药酒的消费税税率是10%，计算结果不要保留小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "5638d2c631474ebf94c8f489c34d69ee",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986209,
              "max_retry": 1,
              "TemplateID": 10705026,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986209,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705026,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某化妆品公司将一批自产高档化妆品用作职工福利，其成本为8万元，消费税税率为15％，消费税成本利润率为5％，增值税成本利润率为10％，则其消费税的组成计税价格是 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万元。计算结果保留两位小数。</p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "a74ee9c1002f467d9c91f4c82ab4f54a",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986207,
              "max_retry": 1,
              "TemplateID": 10705023,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986207,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705023,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某小轿车生产企业2019年6月生产并销售小轿车300辆，每辆含税售价16.95万元，消费税率9%，该车达到减征消费税标准，则企业应纳消费税是 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万元？计算结果请保留一位小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "184ee73ace3742fd86d4e3c5041f36ba",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986205,
              "max_retry": 1,
              "TemplateID": 10705020,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986205,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705020,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某市高尔夫球具生产企业2019年6月1日以分期收款方式销售一批球杆，价税合计为135.6万元，合同约定于9月5日，11月5日各支付50%价款，9月5日按照约定收取50%价款，但未给客户开具发票，已知高尔夫球具的消费税税率为10%，该企业9月应就该项业务应缴纳的消费税为 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 万元.计算结果不保留小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "924fab6cc707484eb24dc6f2ef197c3d",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986214,
              "max_retry": 1,
              "TemplateID": 10705032,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986214,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705032,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>某酒厂以自产特制粮食白酒2000斤用于厂庆庆祝活动，每斤白酒成本12元，无同类产品售价。计算应纳消费税（消费税成本利润率为10%，白酒消费税税率0.5元/斤，20%），白酒应该缴纳的从量的消费税为 <span class=\"blank-item\" style=\"display: inline-block;\">[填空1]</span> 元。应该缴纳的从价的消费税为 <span class=\"blank-item\" style=\"display: inline-block;\">[填空2]</span> 元，应该缴纳的消费税合计为 <span class=\"blank-item\" style=\"display: inline-block;\">[填空3]</span> 元，计算结果不要保留小数。</p><p><br/></p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 2.7,
                  "score": 2.7,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                },
                {
                  "Num": 2,
                  "Score": 2.7,
                  "score": 2.7,
                  "FuzzyMatch": true,
                  "CaseSensitive": false
                },
                {
                  "Num": 3,
                  "Score": 2.6,
                  "score": 2.6,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "09adbb12bbf44699b643181d7db31412",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986208,
              "max_retry": 1,
              "TemplateID": 10705025,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986208,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705025,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            },
            {
              "Body": "<div class=\"custom_ueditor_cn_body\"><p>卷烟批发企业甲按照不含税批发价13000元每箱的价格，批发给卷烟批发企业乙300箱卷烟，批发150箱给零售专卖店，批发了50箱给个体烟摊，家企业应该缴纳卷烟批发环节的消费税=<span class=\"blank-item\" style=\"display:inline-block;\">[填空1]</span>元，不保留小数。</p></div>",
              "Type": "FillBlank",
              "data": {},
              "Score": 8,
              "index": 0,
              "score": 8,
              "Blanks": [
                {
                  "Num": 1,
                  "Score": 8,
                  "score": 8,
                  "FuzzyMatch": false,
                  "CaseSensitive": false
                }
              ],
              "isEdit": false,
              "Options": [],
              "Version": "54288067af7740dd940ece7cb7c29245",
              "TypeText": "填空题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986201,
              "max_retry": 1,
              "TemplateID": 10705015,
              "difficulty": 0,
              "library_id": 101089,
              "problem_id": 52986201,
              "BlanksScore": [],
              "ProblemType": 4,
              "template_id": 10705015,
              "review_detail": {},
              "OrderInsensitive": false,
              "scope_of_question_answer": 0
            }
          ],
          "description": "第一大题"
        },
        {
          "id": 512497,
          "Body": "",
          "order": 2,
          "title": "第二大题",
          "problems": [
            {
              "Body": "<p>\n2019 年 6月,某酒厂将自产的一种新型粮食白酒 5吨用作职工福利,粮食白酒的成本共计 8000元,该粮食白酒无同类产品市场销售价格,但已知其成本利润率为 10%,计算该批粮食白酒应缴纳的消费税税额( )元。\n\n</p>",
              "Type": "SingleChoice",
              "data": {},
              "Score": 2,
              "index": 0,
              "score": 2,
              "Options": [
                {
                  "key": "B",
                  "value": "<p>4290</p>"
                },
                {
                  "key": "D",
                  "value": "<p>3450</p>"
                },
                {
                  "key": "A",
                  "value": "<p>7200</p>"
                },
                {
                  "key": "C",
                  "value": "<p>8450</p>"
                }
              ],
              "Version": "7fed191bc53f4cb2a3f8894b92b8a7d5",
              "TypeText": "单选题",
              "HasRemark": true,
              "LibraryID": 101089,
              "ProblemID": 52986218,
              "max_retry": 1,
              "TemplateID": 10663477,
              "difficulty": 1,
              "library_id": 101089,
              "problem_id": 52986218,
              "ProblemType": 1,
              "template_id": 10663477,
              "scope_of_question_answer": 0
            }
          ],
          "description": "第二大题"
        }
      ],
      "has_problem_dict": true,
      "font": "",
      "title": "第3章测试"
    }
  };

  // 函数：消毒HTML内容，防止XSS攻击
  function sanitizeHTML(html) {
    const div = document.createElement('div');
    div.innerHTML = html;
    return div.textContent || div.innerText || "";
  }

  // 函数：打乱数组顺序（Fisher-Yates 算法）
  function shuffleArray(array) {
    for (let i = array.length - 1; i > 0; i--) {
      const j = Math.floor(Math.random() * (i + 1));
      [array[i], array[j]] = [array[j], array[i]];
    }
    return array;
  }

  // 函数：渲染试卷，只显示选择题，并随机打乱题目顺序
  function renderQuiz() {
    const quizTitle = document.getElementById('quiz-title');
    const quizContent = document.getElementById('quiz-content');
    const submitBtn = document.querySelector('.submit-btn');

    // 设置试卷标题
    quizTitle.innerHTML = data.data.title;

    // 遍历每个大题
    data.data.problems.forEach((section, sectionIndex) => {
      const sectionDiv = document.createElement('div');
      sectionDiv.className = 'section';

      const sectionTitle = document.createElement('h2');
      sectionTitle.innerHTML = section.title;
      sectionDiv.appendChild(sectionTitle);

      // 打乱当前大题的题目顺序
      const shuffledProblems = shuffleArray(section.problems.slice());

      // 遍历每个题目
      shuffledProblems.forEach((problem, problemIndex) => {
        // 只处理选择题
        if (problem.Type === 'SingleChoice' || problem.Type === 'MultipleChoice') {
          const questionDiv = document.createElement('div');
          questionDiv.className = 'question';

          // 题目标题
          const questionTitle = document.createElement('div');
          questionTitle.className = 'question-title';
          questionTitle.innerHTML = `问题 ${problemIndex + 1} (${problem.TypeText}) <span class="score">[${problem.Score} 分]</span>`;
          questionDiv.appendChild(questionTitle);

          // 题目内容
          const questionBody = document.createElement('div');
          questionBody.innerHTML = problem.Body;
          questionDiv.appendChild(questionBody);

          // 选项
          const optionsDiv = document.createElement('div');
          optionsDiv.className = 'options';

          problem.Options.forEach(option => {
            const label = document.createElement('label');
            const input = document.createElement('input');
            input.type = (problem.Type === 'SingleChoice') ? 'radio' : 'checkbox';
            // 使用唯一的name属性确保单选或多选的正确性
            input.name = `section${sectionIndex}_question${section.problems.indexOf(problem)}`;
            input.value = option.key;
            label.appendChild(input);
            label.innerHTML += `${option.key}. ${sanitizeHTML(option.value)}`;
            optionsDiv.appendChild(label);
          });

          questionDiv.appendChild(optionsDiv);
          sectionDiv.appendChild(questionDiv);
        }
      });

      quizContent.appendChild(sectionDiv);
    });

    // 显示提交按钮
    submitBtn.style.display = 'block';
  }

  // 函数：提交试卷
  function submitQuiz() {
    const resultDiv = document.getElementById('quiz-result');
    const quizContent = document.getElementById('quiz-content');
    const sections = quizContent.querySelectorAll('.section');
    let resultHTML = '<h3>您的选择：</h3><ul>';

    sections.forEach((section, sectionIndex) => {
      const questions = section.querySelectorAll('.question');
      questions.forEach((question, questionIndex) => {
        let answer = '';
        const questionTypeText = question.querySelector('.question-title').innerHTML;
        const isSingleChoice = questionTypeText.includes('单选题');
        const isMultipleChoice = questionTypeText.includes('多选题');

        if (isSingleChoice) {
          const selected = question.querySelector(`input[name="section${sectionIndex}_question${section.problems.indexOf(question)}"]:checked`);
          answer = selected ? selected.value : '未选择';
        } else if (isMultipleChoice) {
          const selected = question.querySelectorAll(`input[name="section${sectionIndex}_question${section.problems.indexOf(question)}"]:checked`);
          answer = selected.length > 0 ? Array.from(selected).map(input => input.value).join(', ') : '未选择';
        }

        resultHTML += `<li>第${sectionIndex + 1}大题 - 问题${questionIndex + 1}: ${answer}</li>`;
      });
    });

    resultHTML += '</ul>';
    resultDiv.innerHTML = resultHTML;
    resultDiv.style.display = 'block';
    window.scrollTo(0, document.body.scrollHeight);
  }

  // 页面加载完成后渲染试卷
  window.onload = renderQuiz;
</script>

</body>
</html>
